package com.zj.osm.model.dao;

import com.zj.osm.App;
import com.zj.osm.entity.db.DaoSession;
import com.zj.osm.entity.greendao.Project;

import java.util.List;

/**
 * <pre>
 *     author : luhenchang
 *     e-mail : 1276998208@qq.com
 *     time   : 2019/12/03
 *     desc   : 版权所有
 *     version: 1.0
 * </pre>
 */
public class ProjectsDao {
    private DaoSession daoSession = App.getInstances().getDaoSession();
    /**
     * 这个获取项目列表所有数据
     * */
    public List<Project> getProjectListData(){
      return  daoSession.getProjectDao().queryBuilder().list();
    }
}
